<?php
    include './base.php';
    $addsname = $_POST["addsname"];
    $addbuildingText = $_POST["addbuildingText"];
    $addroomidText = $_POST["addroomidText"];
    $addbedidText = $_POST["addbedidText"];
    $addcollegeText = $_POST["addcollegeText"];
    $addclazzText = $_POST["addclazzText"];
    $sex = $_POST["sex"];
    $addstudentnum = $_POST["addstudentnum"];
    $addphone = $_POST["addphone"];
    $addtelphone = $_POST["addtelphone"];
    $sql = "insert into student value(null,'$addsname', '$addbuildingText','$addroomidText','$addbedidText','$addcollegeText','$addclazzText','$sex', '$addstudentnum','$addphone','$addtelphone')";
    mysql_query($sql);
    print_r("添加成功！");
?>